Refine flights globe loading, cleanup, and adaptive rendering tweaks #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
clearFlightLines()helper inassets/js/earth.jsthat disposes geometries and materials and removesTHREE.Lineobjects from the scene, and wire it into filter handlers by updatingsetupFilterHandlersto acceptclearFlightLinesand call it when filters are applied or reset.THREE.LoadingManagerwith theTextureLoaderto hide the loading overlay only after all textures finish loading and replace the previous Promise-based texture handling with manager-driven hide timing.deviceProfileand switchingrenderer.powerPreference, cappingrenderer.setPixelRatio, toggling features like clouds/night/glow, and throttling the animation loop with a frame-rate guard viaquality.frameRate.createFlightPathto acceptnumPoints,createFlightLinesto acceptenableGlow, and by using lower-detail materials/segment counts whenlowPowerModeis active.flights.htmlto include a loading overlay (#earth-loading), aperformance-pillbadge, and refreshed filter panel markup and CSS (rounded cards, pills, collapsible state, and visual polish).Testing
python -m http.server 8000and it served successfully on port 8000.http://127.0.0.1:8000/flights/and saved a visual confirmation screenshot toartifacts/flights-3d.png(succeeded).bundle exec jekyll build, which failed due to a missingGemfilein this environment (failure unrelated to the JS/HTML changes).Codex Task